﻿@model wUniApp.MVC.App_Data.Execution


@{
    ViewBag.Title = wUniApp.MVC.App_GlobalResources.Resources.Edit;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@Html.GetTitle()


@using (Html.BeginForm())
{
  @Html.AntiForgeryToken()

  
  <table cellpadding="10" cellspacing="10" width="1000">
    <tr style="background:#cedce8">
      <td width="60%"><h4>.EditorFor() / .ValidationMessageFor() </h4></td>
      <td width="40%"><h4>.EditorForModel()</h4></td>
    </tr>
    <tr>
      <td>
        <div class="form-horizontal">
          <h4>Execution</h4>
          <hr />
          @Html.ValidationSummary(true, "", new { @class = "text-danger" })
          @Html.HiddenFor(model => model.Id)

          <div class="form-group">
            @Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
              @Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } })
              @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" })
            </div>
          </div>

          <div class="form-group">
            @Html.LabelFor(model => model.CustomerId, "CustomerId", htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
              @Html.DropDownList("CustomerId", null, htmlAttributes: new { @class = "form-control" })
              @Html.ValidationMessageFor(model => model.CustomerId, "", new { @class = "text-danger" })
            </div>
          </div>

          <div class="form-group">
            @Html.LabelFor(model => model.AmountDue, htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
              @Html.EditorFor(model => model.AmountDue, new { htmlAttributes = new { @class = "form-control" } })
              @Html.ValidationMessageFor(model => model.AmountDue, "", new { @class = "text-danger" })
            </div>
          </div>

          @Html.SubmitSave()

        </div>
        </td>
      <td>
        <div>
          @Html.EditorForModel()
        </div>
      </td>
      </tr>
    </table>
        }

        <div>
          @Html.BackToList()
        </div>

        @section Scripts {
          @Scripts.Render("~/bundles/jqueryval")
        }
